<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<f:subview id="orderTopBar">
    <f:verbatim>
        <script type="text/javascript">
            function askQuit()
            {
                if (confirm("Вы уверены, что хотите ЗАКРЫТЬ текущий заказ и вернуться к списку заказов?")) go('orders');
            }
        </script>
    </f:verbatim>
    <h:panelGroup layout="block" styleClass="" style="margin-bottom:15px;">
        <h:panelGroup style="margin-left:5px;">
            <h:outputLink onclick="go('order')" value="#">
                <h:graphicImage value="/resources/img/shoppingcart_32.gif" width="24"/>
                <h:outputText value="Корзина" styleClass="hdr1_link"/>
            </h:outputLink>
        </h:panelGroup>

        <h:panelGroup style="margin-left:5px;">
            <h:outputLink onclick="go('ManagerGoodsPage.jsf')" rendered="#{OrderBean.orderIsEditable}" value="#">
                <h:graphicImage value="/resources/img/home_32.gif" width="24"/>
                <h:outputText value="Каталог" styleClass="hdr1_link"/>
            </h:outputLink>
        </h:panelGroup>

        <rich:spacer width="50"/>

        <h:panelGroup style="margin-left:5px;">
            <h:outputLink onclick="askQuit();" value="#">
                <h:graphicImage value="/resources/img/folder_32.gif" width="24"/>
                <h:outputText value="К списку заказов" styleClass="hdr1_link"/>
            </h:outputLink>
        </h:panelGroup>
    </h:panelGroup>
</f:subview>